package model;

public class Dice {
	public int total_dice;
	int valueD1;
	int valueD2;
	public Dice (){
		
	}
	public int throw_dice(){
		valueD1=(int)(Math.random()*6)+1; //value between 1 and 6 included
		valueD2=(int)(Math.random()*6)+1;
		total_dice = valueD1+valueD2;
		return total_dice;//we return the total of the two dices
	}
	
	public boolean isDouble(){
		if (valueD1==valueD2)return true;
		return false;
	}
}
